Question icon
Grade 10Magical Mathematics[Interesting Approach]

Suppose in a sequence of positive integers every 17-sum is even and every 18-sum is odd.What is the maximum length of such a sequence ?

DETAILS AND ASSUMPTIONS:

Here p-sum means the sum of p consecutive numbers.

Profile image of Adhiraj  Mandal
13 Years agoGrade 10
Answers icon

2 Answers

Profile image of Shivam Dimri
13 Years ago

well you said a sequece!!!

sequences can be anything,

even repetition of the same numbers strecting to any amount 

had it been ap

then that wud be different

but YOUR PRESCRIBED SEQUENCE shud stretch to infinity!!

Profile image of Adhiraj  Mandal
13 Years ago

Dear Shubham,

I have already solved the problem myself.However,your solution is not correct.The maximum length is 33.Actually,if every p-sum is even and every q sum is odd,with gcd(p,q)=1,then the maximum length is (p+q-2).The proof is tricky.Write 18 consecutive 17-term sequences and check that you will reach to ODD=EVEN .................... which is a contrdiction.